package com.cpsdna.util;

import org.nutz.lang.Strings;

/**
 * Created by Jianghao on 2017/2/27.
 */
public class Util {

    public static String phone2Email(String phone) {

        String number = Strings.isNotBlank(phone) ? phone.substring(0, 3) : "";

        switch (number) {
            case "134":
                return phone + "@139.com";
            case "135":
                return phone + "@139.com";
            case "136":
                return phone + "@139.com";
            case "137":
                return phone + "@139.com";
            case "138":
                return phone + "@139.com";
            case "139":
                return phone + "@139.com";
            case "150":
                return phone + "@139.com";
            case "151":
                return phone + "@139.com";
            case "152":
                return phone + "@139.com";
            case "157":
                return phone + "@139.com";
            case "158":
                return phone + "@139.com";
            case "159":
                return phone + "@139.com";
            case "182":
                return phone + "@139.com";
            case "183":
                return phone + "@139.com";
            case "184":
                return phone + "@139.com";
            case "187":
                return phone + "@139.com";
            case "178":
                return phone + "@139.com";
            case "188":
                return phone + "@139.com";
            case "147":
                return phone + "@139.com";
            case "130":
                return phone + "@wo.cn";
            case "131":
                return phone + "@wo.cn";
            case "132":
                return phone + "@wo.cn";
            case "145":
                return phone + "@wo.cn";
            case "155":
                return phone + "@wo.cn";
            case "156":
                return phone + "@wo.cn";
            case "176":
                return phone + "@wo.cn";
            case "185":
                return phone + "@wo.cn";
            case "186":
                return phone + "@wo.cn";
            case "133":
                return phone + "@189.cn";
            case "153":
                return phone + "@189.cn";
            case "177":
                return phone + "@189.cn";
            case "180":
                return phone + "@189.cn";
            case "181":
                return phone + "@189.cn";
            case "189":
                return phone + "@189.cn";
            default:
                return null;
        }
    }

}
